package service

import (
	"context"
	"github.com/aphasia51/website/internal/domain"
	"github.com/aphasia51/website/internal/repository"
)

type WasteChemicalService struct {
	repo *repository.WasteChemicalRepository
}

func NewWasteChemicalService(repo *repository.WasteChemicalRepository) *WasteChemicalService {
	return &WasteChemicalService{
		repo: repo,
	}
}

func (svc *WasteChemicalService) Query(ctx context.Context, a domain.WasteChemical) (domain.WasteChemical, error) {
	return svc.repo.Query(ctx, a)
}
